package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sql")
public class Control {
    @Autowired
    public UserMapper userMapper;
    @RequestMapping("/sqlcontent")
    public List<User> getuser(){
        return userMapper.getuser();
    }
}
